<el-form :label-position="labelPosition" :rules="${viewCode}Rules" class="demo-ruleForm" label-width="100px" :model="${viewCode}" ref="${viewCode}" @submit.native.prevent>
    <#if (jsonSchema.properties)??>
        <#list jsonSchema.properties as prop>
            <el-form-item label="${prop.title}:" prop="${prop.field}">
                <#--文本框-->
                <#if prop.type == 'text'>
                    <el-input v-model="${viewCode}.${prop.field}" placeholder="${(prop.placeholder)!''}" clearable></el-input>
                <#--密码框-->
                <#elseif prop.type == 'password'>
                    <el-input v-model="${viewCode}.${prop.field}" placeholder="${(prop.placeholder)!''}" show-password clearable></el-input>
                <#--单选框-->
                <#elseif prop.type == 'radio'>
                    <el-radio-group v-model="${viewCode}.${prop.field}">
                        <#if prop.options??>
                            <#list prop.options as opt>
                                <el-radio label="${opt.key!''}">${opt.label!""}</el-radio>
                            </#list>
                        </#if>
                    </el-radio-group>
                <#--复选框-->
                <#elseif prop.type == 'checkbox'>
                    <el-checkbox-group v-model="${viewCode}.${prop.field}">
                        <#if prop.options??>
                            <#list prop.options as opt>
                                <el-checkbox label="${opt.key!''}">${opt.label}</el-checkbox>
                            </#list>
                        </#if>
                    </el-checkbox-group>
                <#--数字框-->
                <#elseif prop.type == 'integer'>
                    <el-input-number v-model="${viewCode}.${prop.field}"></el-input-number>
                <#elseif prop.type == 'double'>
                    <el-input-number v-model="${viewCode}.${prop.field}" precision="2"></el-input-number>
                <#--下拉框-->
                <#elseif prop.type == 'select'>
                    <el-select v-model="${viewCode}.${prop.field}" placeholder="${(prop.placeholder)!''}"
                            <#if prop.multiselect?? && prop.multiselect >
                                multiple
                            <#else >
                                clearable
                            </#if>
                               filterable>
                        <#if prop.dataset?? && datasetRet[prop.dataset]??>
                            <#list datasetRet[prop.dataset] as opt>
                                <el-option label="${opt.value!''}" value="${opt.key!''}"></el-option>
                            </#list>
                        <#elseif prop.options??>
                            <#list prop.options as opt>
                                <el-option label="${opt.label!''}" value="${opt.key!''}"></el-option>
                            </#list>
                        </#if>
                    </el-select>
                <#--日期时间框-->
                <#elseif prop.type == "datetime">
                    <el-date-picker v-model="${viewCode}.${prop.field}" type="datetime" placeholder="${(prop.placeholder)!''}">
                    </el-date-picker>
                <#--日期框-->
                <#elseif prop.type == "date">
                    <el-date-picker v-model="${viewCode}.${prop.field}" type="date" placeholder="${(prop.placeholder)!''}">
                    </el-date-picker>
                </#if>
            </el-form-item>
        </#list>
    </#if>
    <#if buttons??>
        <el-form-item>
            <#list buttons as button>
                <el-button <#if button.type??>type="${button.type}"</#if> <#if button.onclick??>@click="v_${button.onclick}"</#if> >${button.name}</el-button>
            </#list>
        </el-form-item>
    </#if>
</el-form>